<template>
  <div class="page">
    <div class="btns">
      <el-button type="primary" @click="add('add')">添加</el-button>
    </div>
  </div>
</template>

<script setup>
import api from '../common/js/api.js';
import { ref } from 'vue'
const list = ref('')

const add = () => {
  list.value = api.post('api/students/list');
}

</script>
<style lang="scss" scoped></style>